home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / Include / FWPalete.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  1.6 KB  |  65 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWPalete.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWPALETE_H
  11. #define FWPALETE_H
  12.  
  13. #ifndef FWCOLOR_H
  14. #include "FWColor.h"
  15. #endif
  16.  
  17. #if FW_LIB_EXPORT_PRAGMAS
  18. #pragma lib_export on
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Palette type
  23. //========================================================================================
  24.  
  25. #ifdef FW_BUILD_WIN
  26. typedef HPALETTE    FW_Palette;
  27. #endif
  28.  
  29. #ifdef FW_BUILD_MAC
  30. typedef CTabHandle    FW_Palette;
  31. #endif
  32.  
  33. //========================================================================================
  34. //    Palette functions
  35. //========================================================================================
  36.  
  37. FW_FUNC_ATTR    FW_Palette    FW_CreatePalette(
  38.                                 short nSize,
  39.                                 const FW_CColor* colors,
  40.                                 short        nColorCount);
  41.  
  42. FW_FUNC_ATTR    short        FW_GetPaletteSize(FW_Palette palette);
  43.  
  44. FW_FUNC_ATTR    void        FW_SetPaletteEntries(
  45.                                 FW_Palette    palette,
  46.                                 const FW_CColor* colors,
  47.                                 short        nStartIndex,
  48.                                 short        nColorCount);
  49.  
  50. FW_FUNC_ATTR    void        FW_GetPaletteEntries(
  51.                                 FW_Palette    palette,
  52.                                 FW_CColor*    colors,
  53.                                 short        nStartIndex,
  54.                                 short        nColorCount);
  55.  
  56. FW_FUNC_ATTR    FW_Palette    FW_CopyPalette(FW_Palette palette);
  57.  
  58. FW_FUNC_ATTR    void        FW_DestroyPalete(FW_Palette palette);
  59.                                 
  60. #if FW_LIB_EXPORT_PRAGMAS
  61. #pragma lib_export off
  62. #endif
  63.  
  64. #endif // FWPALETE_H
  65.